package com.example.hzq.zqb.service;

import com.example.hzq.zqb.bean.EnterpriseBean;
import com.example.hzq.zqb.bean.CampusShopBean;
import com.example.hzq.zqb.bean.CommentBean;
import com.example.hzq.zqb.bean.GoodsBean;
import com.example.hzq.zqb.bean.GoodsdetailBean;
import com.example.hzq.zqb.bean.GrandBean;
import com.example.hzq.zqb.bean.GrandgoodsBean;
import com.example.hzq.zqb.bean.LoginBean;
import com.example.hzq.zqb.bean.MyshopBean;
import com.example.hzq.zqb.bean.NewsBean;
import com.example.hzq.zqb.bean.OrderBean;
import com.example.hzq.zqb.bean.UserBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by hzq on 2017/7/3.
 */

public interface Service {
    @GET( "Home/Users/login")
    Call<LoginBean> login(@Query("name")String naem,@Query("pwd") String pwd);
    @GET( "Home/CampusShop/info")
    Call<List<CampusShopBean>> info(@Query("page") int page);
    @GET("Home/CampusShop/getGoodsTypeInfo")
    Call<List<CampusShopBean>> getGoodsTypeInfo(@Query("page") int page,@Query("tid") int tid);
    @GET("Home/CampusShop/changeHint")
    Call<String> changeHint(@Query("id") int id);
    @GET("Home/CampusShop/getCommentList")
    Call<List<CommentBean>> getCommentList(@Query("page") int page, @Query("gid") int gid);
    @GET("Home/CampusShop/getGoodsDetailInfo")
    Call<GoodsdetailBean> getGoodsDetailInfo(@Query("gid") int gid);
    @GET("Home/CampusShop/subGoodsOrder")
    Call<OrderBean> subGoodsOrder(@Query("gid") int gid, @Query("uid") int uid, @Query("aType") int aType, @Query("bType") int bType);
    @GET("Home/CampusShop/getEnterpriseList")
    Call<List<EnterpriseBean>> getEnterpriseList(@Query("page") int page);
    @GET("Home/CampusShop/getShopName")
    Call<MyshopBean> getShopName(@Query("uid") int uid);
    @GET("Home/Shop/typeList")
    Call<List<GrandBean>> typeList(@Query("page") int page, @Query("aid") int aid);
    @GET("Home/Shop/goodsList")
    Call<List<GrandgoodsBean>> goodsList(@Query("page") int page, @Query("typeid") int typeid);
    @GET("Home/Shop/getCommentList")
    Call<List<CommentBean>> getCommentList(@Query("page") int page);
    @GET("Home/Save/getBuyGoodsList")
    Call<List<GoodsBean>> getBuyGoodsList(@Query("page") int page, @Query("uid") int uid);
    @GET("Home/Save/changeStatus")
    Call<String> changeStatus(@Query("addId") int addId);
    @GET("Home/Save/getBuyFinishAdd")
    Call<List<GoodsBean>> getBuyFinishAdd(@Query("page") int page,@Query("uid") int uid);
    @GET("Home/Save/revert")
    Call<String> revert();
    @GET("Home/News/getNews")
    Call<List<NewsBean>> getNews(@Query("page") int page, @Query("uid") int uid, @Query("tid") int tid);
    @GET("Home/Users/userInfo")
    Call<UserBean> userInfo(@Query("uid") int uid);
}
